const {
  $Message
} = require('../../iview/base/index');

Page({
  data: {
    visible: false,
    actions: [
      {
        name: '知道了',
        color: '#19be6b',
      }
    ]
  },
  onReady: function () {
    this.handleOpen();
  },
  handleOpen() {
    this.setData({
      visible: true
    });
  },
  handleClick({ detail }) {
    const index = detail.index;
    if (index === 0) {
      $Message({
        content: '点击了 确认授权'
      });
    }
    this.setData({
      visible: false
    });
  }
});